//
//  QueryViewController.h
//  Audit
//
//  Created by cc on 15-3-3.
//  Copyright (c) 2015年 cc. All rights reserved.
//

#import "BaseViewController.h"
#import "Car.h"
#import "Defect.h"

@interface QueryViewController : BaseViewController
{
    IBOutlet UIButton    *btnModelQuick;//生产配置
    IBOutlet UITextField *textFieldCsn;//生产序号
    IBOutlet UITextField *textFieldVIN;//VIN
    
    
    IBOutlet UIButton *btnSeries;//生产车型
    IBOutlet UIButton *btnModel;//生产配置
    IBOutlet UITextField *txtVin;//VIN
    IBOutlet UITextField *txtTransmission;//变速箱
    IBOutlet UITextField *txtColor;//颜色
    IBOutlet UITextField *txtDriveDirection;//驾驶方向
    IBOutlet UITextField *txtDefect_Info;//重点缺陷
    IBOutlet UITextField *txtRepair_Info;//返修信息
    
    IBOutlet UITextField *txtEngine          ;//引擎
    IBOutlet UIButton *btnPlant   ;//检查地点
    IBOutlet UIButton *btnDomain ;//生产基地
    IBOutlet UIButton *btnAuditGroup     ;//检查组
    IBOutlet UITextField *txtShiftDate      ;//检查日期
    IBOutlet UITextField *txtBuildDate    ;//生产日期
    IBOutlet UITextField *txtCsn     ;//生产序号
    IBOutlet UIButton *btnPhase    ;//生产阶段
}
@property (nonatomic , strong) Car *carConditionQuick;
@property (nonatomic , strong) Car *carConditionQuery;
@property (nonatomic , assign) NSInteger pageCount;

@property (nonatomic , strong) NSMutableArray *listCar;
//@property (nonatomic , strong) NSMutableArray *listDefect;
@property (nonatomic , strong) Car *selectedCar;
@property (nonatomic , strong) Car *editCar;
@property (nonatomic , strong) Defect *selectedDefect;
@property (nonatomic , strong) Defect *editDefect;
@property (nonatomic, assign) NSInteger currentPage;

@property (nonatomic , strong)NSMutableArray *arrDomainList;
@property (nonatomic , strong)NSMutableArray *arrGroupList;
@property (nonatomic , strong)NSMutableArray *arrModelList;
@property (nonatomic , strong)NSMutableArray *arrPhaseList;
@property (nonatomic , strong)NSMutableArray *arrPlantList;
@property (nonatomic , strong)NSMutableArray *arrSeriesList;

@property (nonatomic , assign) BOOL isLoadListData;//是否已经加载列表数据

@property (nonatomic , strong) UIButton *btnSender;//当前点击btn

@property (nonatomic , assign) BOOL isAlertList;//是否弹出列表

@property (nonatomic , strong)UIDatePicker *datePick1;
@property (nonatomic , strong)UIDatePicker *datePick2;

@property (nonatomic , strong)UITextField *selectedTxt;

@end
